package service;

import chapter2.dto.BaseDto;
import chapter2.dto.RoleDto;
import chapter2.entity.BaseEntity;
import chapter2.entity.Role;
import chapter2.vo.Result;

public interface IBaseService<Entity extends BaseEntity,Dto extends BaseDto> {
    Result list();

    Result create(Dto dto);

    Result update(Dto dto, int id);

    boolean existById(int id);

    Entity findById(int id);
}